import React, { Component } from 'react'
import PropChild from './PropChild'
// 类型检测
export default class PropParent extends Component {
    state = {
        total : 100,
        msg : ['proptype限定数据类型']
    }
  render() {
    return (
      <div>
        <h2>父组件</h2>
        <hr />

        <PropChild totalNum = {this.state.total} msg = {this.state.msg} />   
      </div>


    )
  }
}
